package com.rong.creatmodel.factorymodel.factory_method;

public class Client {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore();
        store.setFactory(new MeishiFactory());
        Coffee c = store.orderCoffee();
        System.out.println(c.getName());
    }
}
